

            
// This code is a generated code by a tool
// designed and coded by Shohdi Mohamed Elsheemy ( shohdi@gmail.com )

            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
[Serializable]
public partial class OrgnizationChart
{
System.Int64 _ID =-1;
public System.Int64 ID
{
get { return _ID;}
set { _ID = value;}
}
System.String _NameAR ="";
public System.String NameAR
{
get { return _NameAR;}
set { _NameAR = value;}
}
System.String _NameEN ="";
public System.String NameEN
{
get { return _NameEN;}
set { _NameEN = value;}
}
System.Int64? _ParentID =null;
public System.Int64? ParentID
{
get { return _ParentID;}
set { _ParentID = value;}
}
System.Int64 _ChartTypeID =-1;
public System.Int64 ChartTypeID
{
get { return _ChartTypeID;}
set { _ChartTypeID = value;}
}
System.Int64 _StatusID =-1;
public System.Int64 StatusID
{
get { return _StatusID;}
set { _StatusID = value;}
}
System.String _OrgCode =null;
public System.String OrgCode
{
get { return _OrgCode;}
set { _OrgCode = value;}
}
public OrgnizationChart()
{
}
public OrgnizationChart(System.String __NameAR,System.String __NameEN,System.Int64? __ParentID,System.Int64 __ChartTypeID,System.Int64 __StatusID,System.String __OrgCode)
{
_NameAR = __NameAR;
_NameEN = __NameEN;
_ParentID = __ParentID;
_ChartTypeID = __ChartTypeID;
_StatusID = __StatusID;
_OrgCode = __OrgCode;
}
public OrgnizationChart(System.Int64 __ID,System.String __NameAR,System.String __NameEN,System.Int64? __ParentID,System.Int64 __ChartTypeID,System.Int64 __StatusID,System.String __OrgCode)
{
_ID = __ID;
_NameAR = __NameAR;
_NameEN = __NameEN;
_ParentID = __ParentID;
_ChartTypeID = __ChartTypeID;
_StatusID = __StatusID;
_OrgCode = __OrgCode;
}


             public override bool Equals(object obj)
         {
             if (obj is OrgnizationChart)
             {
                 OrgnizationChart newObj = (OrgnizationChart)obj;

                 if (newObj.ID == this.ID )
                 {
                     return true;
                 }
                 else
                 {
                     return false;
                 }
             }

             else
             {
                 return false;
             }

            
         }            











             }
}
